#pragma once

typedef enum 
{
	yuv_420, 
	yuv_422
} YUV_FORMAT;

typedef struct
{
	unsigned char* Y;
	unsigned char* U;
	unsigned char* V;

	int width;
	int height;

	int strideY;
	int strideCRGB;

	int format; //YUV_FORMAT format;
} Frame;

extern void ConvertFrameToImage(Frame* frame, BYTE* dstBuffer);
extern void getBGRAFromRGB(byte * srcBuffer, byte * dstBuffer, int nWidth, int nHeight);
extern void YUV420toRGB24(unsigned char* src, int width, int height, unsigned char* dst);
